load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

package(default_visibility = ["//visibility:public"])

DEPENDENCIES = [
    # Keep sorted.
    "//rs/protobuf",
    "@crate_index//:assert_matches",
    "@crate_index//:prost",
    "@crate_index//:serde",
    "@crate_index//:serde_cbor",
    "@crate_index//:serde_json",
]

rust_library(
    name = "serialization",
    testonly = True,
    srcs = glob(["src/**"]),
    crate_name = "ic_test_utilities_serialization",
    version = "0.9.0",
    deps = DEPENDENCIES,
)

rust_test(
    name = "serialization_test",
    crate = ":serialization",
)
